<%@ Control Language="C#" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<table width="100%">
    <%HtmlBlock method="processList"; %>
    <tr>
    <%HtmlBlock method="processInnerList"; %>
<%Conditional on = "CurrentBizObj.product.metaType==-Department"; %>
</tr><tr><td colspan="<%=ColumnElements %>">
<div class="departmentlistbox">
	<div class="title"><asp:HyperLink ID="product_title" runat="server" NavigateUrl="$navLink$" /></div>
	<div class="summary"><swf:ReadOnlyText ID="product_summary" runat="server" /></div>
</div>
</td></tr><tr>
<%=ResetColCount %>
<%EndConditional; %>

<%Conditional on = "CurrentBizObj.product.metaType!=-Department"; %>
    <td valign="top">
    <div class="productbox">
		<h6><asp:HyperLink ID="product_title" runat="server" NavigateUrl="$navLink$" /></h6>

		<div class="mainMediaArea">
		    <asp:HiddenField ID="id" runat="server" />
		    <asp:HyperLink ID="product_primaryPicture_name" runat="server" BorderWidth="1px" ImageUrl="/$product.mediaCacheName$/$imageRes$/$product.primaryPicture.name$" 
				EnableViewState="false"  NavigateUrl="$navLink$"/>
		</div>
		
		<div class="summary">
    		<swf:ReadOnlyText ID="product_summary" runat="server" />
		</div>
    </div>
    </td>
<%EndConditional; %>
    <%EndHtmlBlock; %>
    </tr>
    <%EndHtmlBlock; %>
</table>
